home *** CD-ROM | disk | FTP | other *** search
/ 3D Games - Real-time Rend…ng & Software Technology / 3D Games - Real-time Rendering & Software Technology.iso / flysdk / plugin / gamelib / explode.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-06  |  699 b   |  28 lines

  1. // the explode class implements a explosion definition
  2. class explode : public bsp_object
  3. {
  4.     public:
  5.  
  6.         exp_sphere *e;    // the explode sphere
  7.         sprite_light *s;        // the sprite
  8.         light *l;        // the light
  9.         dyn_sound *snd;        // the sound
  10.         particle_system *ps;    // the particle system
  11.         float damage,damageradius;    // the damage value and radius
  12.  
  13.     int get_custom_param_desc(int i,param_desc *pd);
  14.     virtual void do_explode(vector& pos,vector& z,int fromplayer);
  15.  
  16.     explode() 
  17.     { type=TYPE_EXPLODE; };
  18. };
  19.  
  20. class explode_desc : public class_desc
  21. {
  22. public:
  23.     void *create() { return new explode; };
  24.     char *get_name() { return "explode"; };
  25.     int get_type() { return TYPE_EXPLODE; };
  26. };
  27.  
  28.